﻿<BaseControl:DialogControl x:Class="jSLApp.Client.Forms.MessageDetail"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:BaseControl="clr-namespace:jSLCore.Client.Presentation.BaseControl;assembly=jSLCore.Client.Presentation" xmlns:j="clr-namespace:jSLCore.Client.Presentation.Controls;assembly=jSLCore.Client.Presentation" xmlns:tk="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit" xmlns:RichNotepad="clr-namespace:RichNotepad;assembly=RichNotepad" xmlns:jBinding="clr-namespace:jSLCore.Client.Presentation.jBinding;assembly=jSLCore.Client.Presentation" xmlns:BaseConverters="clr-namespace:jSLCore.Client.Presentation.jBinding.BaseConverters;assembly=jSLCore.Client.Presentation" mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400" Width="600" Height="500">
    <j:ImageGroupBox Header="Содержание сообщения">
        <tk:DockPanel LastChildFill="True">
            <StackPanel Orientation="Horizontal" tk:DockPanel.Dock="Top">
                <j:ImageButton Content="Ответить" Click="Reply"/>
                <StackPanel Orientation="Vertical">
                <j:LeftHeaderContainer VerticalAlignment="Top" Header="Отправитель:">
                    <HyperlinkButton Click="goSender">
                        <BaseControl:BaseControl.jBinding>
                            <jBinding:jReadOnlyBinding Path="FromText"/>
                        </BaseControl:BaseControl.jBinding>
                    </HyperlinkButton>
                </j:LeftHeaderContainer>
                    <j:LeftHeaderContainer VerticalAlignment="Top" Header="Получатель:">
                        <HyperlinkButton Click="goRecep">
                            <BaseControl:BaseControl.jBinding>
                                <jBinding:jReadOnlyBinding Path="ToText"/>
                            </BaseControl:BaseControl.jBinding>
                        </HyperlinkButton>
                    </j:LeftHeaderContainer>
                </StackPanel>
            </StackPanel>
            <StackPanel Orientation="Horizontal" tk:DockPanel.Dock="Bottom">
                <HyperlinkButton Content="Перейти к треку">
                    <BaseControl:BaseControl.jBinding>
                        <jBinding:jReadOnlyBinding ElementPropertyPath="Visibility" Path="MusicId">
                            <BaseConverters:jInvertBooleanConverter>
                                <BaseConverters:jNullToTrueConverter/>
                            </BaseConverters:jInvertBooleanConverter>
                        </jBinding:jReadOnlyBinding>
                    </BaseControl:BaseControl.jBinding>
                </HyperlinkButton>
            </StackPanel>
            <RichTextBox IsReadOnly="True" VerticalScrollBarVisibility="Auto">
                <BaseControl:BaseControl.jBinding>
                    <jBinding:jReadOnlyBinding Path="Text" ElementPropertyPath="Xaml"/>
                </BaseControl:BaseControl.jBinding>
            </RichTextBox>
        </tk:DockPanel>
    </j:ImageGroupBox>
</BaseControl:DialogControl>
